package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.dto.AddCategoryDTO;
import com.sangeng.dto.UpdateCategoryDTO;
import com.sangeng.entity.Category;
import com.sangeng.entity.ResponseResult;

import java.util.List;

/**
 * 分类表(Category)表服务接口
 *
 * @author makejava
 * @since 2022-08-18 17:43:41
 */
public interface CategoryService extends IService<Category> {

    ResponseResult getAllCategory();


    ResponseResult getCategoryList(Integer pageNum, Integer pageSize);

    ResponseResult addCategory(AddCategoryDTO addCategoryDTO);

    ResponseResult deleteCategoryById(List<Long> idList);

    ResponseResult getCategoryById(Long id);

    ResponseResult updateCategory(UpdateCategoryDTO updateCategoryDTO);
}

